import React from 'react'
import './index.scss'
export default function Pannel(props) {
    // 接收父组件传递的插槽  props.children
    // 获取插槽数组:如果父组件没有传插槽 []
    // 如果父组件传递了一段html标签  [{}]
    // 如果父组件传递了多个 html标签 [{},{},{}]
    const children = React.Children.toArray(props.children)
  
  return (
    <div className="pannel">
              {children}
     </div>
  )
}
